package com.dongjiantong.common.web.util;

import com.dongjiantong.common.utils.BeanMapper;
import com.dongjiantong.common.web.model.BaseLoginUser;
import com.dongjiantong.user.model.MzUser;
import com.google.common.base.Strings;

/**
 * @author cao
 * @create 2017-12-16 下午1:21
 **/
public abstract class LoginUserMaker {
    public static BaseLoginUser from(MzUser user){
        BaseLoginUser baseLoginUser = new BaseLoginUser();
        BeanMapper.copy(user, baseLoginUser);

        return baseLoginUser;
    }

}
